home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
sound
/
playgui
/
playinfo
< prev
next >
Wrap
Text File
|
1999-11-30
|
2KB
|
97 lines
G4C;PlayINFO by Richard Kapp 1999 ; MUST BE IN THE FIRST(!) LINE
WINBIG 0 0 275 170 ""
wintype 00001000
image 0 0 book
WINFONT topaz_thin.font 8 000
WINBACKGROUND image info 0
xonload
templ = no
unit = 0
loadimage book info Workbench
guiopen PlayInfo
xonclose
freeimage book
guiquit PlayInfo
xBUTTON 184 140 40 15 "OKAY"
freeimage book
guiquit PlayInfo
XBUTTON 244 8 20 15 ">"
++unit
gosub PlayInfo changeunit
XBUTTON 220 8 20 15 "<"
--unit
gosub PlayInfo changeunit
XTEXTIN 338 3 58 14 "" unit '0' 10
gadid 2
gosub PlayInfo changeunit
xRoutine ChangeUnit
; make sure the unit is 0-255
if $unit > 255
unit = 0
elseif $unit < 0
unit = 255
endif
lvuse PlayInfo 1
lvchange "CLIPS:$unit"
update PlayInfo 2 $unit
xBUTTON 175 30 60 15 "LOAD"
ReqFile -1 -1 300 -30 'Choose file :' LOAD filename ''
if $filename > ''
lvuse PlayInfo 1
lvchange $filename
; now save it so as to write it to the clipboard
lvsave 'CLIPS:$unit'
endif
xBUTTON 175 50 60 15 "SAVE"
ReqFile -1 -1 300 -30 'Save as file :' SAVE savename ''
if $savename > ' '
ifexists file $savename
ezreq 'File $savename exists.\nOverwrite ?' Overwrite|CANCEL choice
if $choice = 0
stop
endif
endif
lvsave $savename
endif
XBUTTON 175 70 60 15 "CLEAR"
lvuse PlayInfo 1
lvclear
lvsave 'CLIPS:$unit'
XLISTVIEW 15 45 100 120 "" clipline CLIPS:0 10 NUM
gadid 1
xBUTTON 175 90 60 15 "EDIT"
if $templ = no
CLI 'C:copy PlayGUI:template.txt ram:t'
CLI 'C:run >NIL: C:ed ram:t/template.txt'
templ = yes
elseif $templ = yes
CLI 'C:run >NIL: C:ed ram:t/template.txt'
endif
xBUTTON 175 110 60 15 "HELP"
EZReq "You can write and edit your info via ED and view, save and load it here." "AHA" helpy